Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 再接続の制御を除去 #959

Merged
merged 4 commits into from
Aug 6, 2023
Merged

fix: 再接続の制御を除去 #959

merged 4 commits into from
Aug 6, 2023

Conversation

MikuroXina
Copy link
Collaborator

close #958

Type of Change:

音声接続処理の仕様変更

Cause of the Problem (問題の原因)

切断時のハンドラが再接続すべきかどうかの判断を兼ねていましたが, これは再接続できるかもしれない状況で呼び出されるので, 強制切断された際には呼び出されていませんでした.

Dealing with Problems (問題への対処)

そもそも再接続することが好ましくないことが多く, ハンドラに機能を持たせすぎていたので, この再接続を制御する機能を除去し, あらゆる切断された状況でもハンドラが呼び出されるようにしました.

Details of implementation (実施内容)

VoiceConnection の引数の仕様を変更し, それを利用していたコードの記述を修正しました. そして再接続処理のコードをすべて除去しました.

@MikuroXina MikuroXina enabled auto-merge (squash) August 6, 2023 22:07
@MikuroXina MikuroXina self-assigned this Aug 6, 2023
@MikuroXina MikuroXina requested a review from m1sk9 August 6, 2023 22:07
@MikuroXina MikuroXina added the C-bug Category: bug label Aug 6, 2023
@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Merging #959 (77c1f8c) into main (f053514) will increase coverage by 0.63%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #959      +/-   ##
==========================================
+ Coverage   74.16%   74.79%   +0.63%     
==========================================
  Files          72       72              
  Lines        4915     4872      -43     
  Branches      419      419              
==========================================
- Hits         3645     3644       -1     
+ Misses        852      810      -42     
  Partials      418      418              
Flag Coverage Δ
unittests 74.79% <0.00%> (+0.63%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/adaptor/discord/voice.ts 26.54% <0.00%> (+4.76%) ⬆️
src/service/command/gyokuon.ts 82.65% <ø> (+0.83%) ⬆️
src/service/command/kaere.ts 70.90% <ø> (+0.19%) ⬆️
src/service/command/party.ts 82.57% <ø> (+0.34%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@MikuroXina MikuroXina merged commit 9ebe81d into main Aug 6, 2023
12 of 13 checks passed
@MikuroXina MikuroXina deleted the fix/#958 branch August 6, 2023 22:13
This was referenced Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
2 participants